package org.jiuling.aliyun.sms.convert;

import org.jiuling.aliyun.sms.model.AddSmsTemplateResponseModel;

/**
 * 添加短信模板响应转换
 * @author 紫灵
 * @date 2023年02月11日 22时48分28秒
 */
public class AddSmsTemplateResponseConvert {

    /** 私有构造方法，禁止创建对象 */
    private AddSmsTemplateResponseConvert() {}

    /**
     * 内容转模型
     * @param addSmsTemplateResponseBody 添加短信模板响应内容
     * @return 添加短信模板响应模型
     */
    public static AddSmsTemplateResponseModel bodyToModel(com.aliyun.sdk.service.dysmsapi20170525.models.AddSmsTemplateResponseBody addSmsTemplateResponseBody){
        AddSmsTemplateResponseModel addSmsTemplateResponseModel = new AddSmsTemplateResponseModel();
        addSmsTemplateResponseModel.setTemplateCode(addSmsTemplateResponseBody.getTemplateCode());
        addSmsTemplateResponseModel.setCode(addSmsTemplateResponseBody.getCode());
        addSmsTemplateResponseModel.setMessage(addSmsTemplateResponseBody.getMessage());
        addSmsTemplateResponseModel.setRequestId(addSmsTemplateResponseBody.getRequestId());
        return addSmsTemplateResponseModel;
    }

    /**
     * 内容转模型
     * @param addSmsTemplateResponseBody 添加短信模板响应内容
     * @return 添加短信模板响应模型
     */
    public static AddSmsTemplateResponseModel bodyToModel(com.aliyun.dysmsapi20170525.models.AddSmsTemplateResponseBody addSmsTemplateResponseBody) {
        AddSmsTemplateResponseModel addSmsTemplateResponseModel = new AddSmsTemplateResponseModel();
        addSmsTemplateResponseModel.setTemplateCode(addSmsTemplateResponseBody.getTemplateCode());
        addSmsTemplateResponseModel.setCode(addSmsTemplateResponseBody.getCode());
        addSmsTemplateResponseModel.setMessage(addSmsTemplateResponseBody.getMessage());
        addSmsTemplateResponseModel.setRequestId(addSmsTemplateResponseBody.getRequestId());
        return addSmsTemplateResponseModel;
    }
}
